package com.yj.ccs.abs.web.asset.entity;

import com.yj.ccs.abs.common.enums.AssetGuaranteeType;
import com.yj.ccs.abs.common.enums.AssetLevelType;
import com.yj.ccs.abs.common.enums.AssetStatusType;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/20
 * Author     : Unbelievable9
 **/
@Data
public class Asset {

    private Long id;

    private String number;

    private BigDecimal money_sum = BigDecimal.ZERO;

    private BigDecimal available_money = BigDecimal.ZERO;

    private LocalDate start_date;

    private LocalDate predict_date;

    private AssetLevelType level = AssetLevelType.NORMAL;

    private Boolean insured = false;

    private BigDecimal insurance_coverage = BigDecimal.ZERO;

    private AssetGuaranteeType guarantee = AssetGuaranteeType.NONE;

    private Boolean deposited = false;

    private BigDecimal money_deposited = BigDecimal.ZERO;

    private Boolean expanded = false;

    private BigDecimal money_break = BigDecimal.ZERO;

    private Boolean accused = false;

    private AssetStatusType status = AssetStatusType.WAIT_TO_APPLY;

    private LocalDate pool_date;

    private LocalDate recycle_date;

    private LocalDateTime create_time;
}
